/*
 * @Description: vitest单独配置文件
 * @Author: laoyuan
 * @Date: 2024-03-25 18:30:33
 */
import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    // 提供全局 API
    globals: true,
    coverage: {
      reporter: ['json', 'html'],
      thresholds: {
        lines: 75,
        functions: 75,
        branches: 75,
        statements: 75,
      },
    },
    include: ['tests/**/*.test.js'],
  },
});
